home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000079_icon-group-sender_Thu Oct 19 08:18:41 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9JFGGE01173
  4.     for icon-group-addresses; Thu, 19 Oct 2000 08:16:16 -0700 (MST)
  5. Message-Id: <200010191516.e9JFGGE01173@baskerville.CS.Arizona.EDU>
  6. Date: Wed, 18 Oct 2000 16:49:29 -0700 (PDT)
  7. From: Shamim Mohamed <shamim@drones.com>
  8. To: "Charles Hethcoat" <CHETHCOA@oss.oceaneering.com>
  9. Cc: <icon-group@optima.CS.Arizona.EDU>
  10. Subject: Re: Pipes in Icon
  11. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  12. Status: RO
  13. Content-Length: 459
  14.  
  15.  > This implies that each open() can open only a single, unidirectional
  16.  > pipe to a fresh instance of /usr/bin/xyz.  And that is true.  When I
  17.  > did this, I got two separate instances of xyz, each running a
  18.  > separate pipe.
  19.  
  20. True. If you want a bi-directional connection to a process, you need a
  21. pair of pipes. This is easy to do in Unicon with filepair() - the
  22. equivalent of the socketpair(2) system call - but I don't think it can
  23. be done in Icon.
  24.  
  25. -s
  26.  
  27.